#ifndef MESSAGEINFOMATION_H
#define MESSAGEINFOMATION_H

#include <QWidget>

namespace Ui {
class MessageInfomation;
}

typedef enum emMessageBoxType {
    kProgramRunning = 0,                    // 程序正在运行
    kMax
}emMessageBoxType;

class MessageInfomation : public QWidget
{
    Q_OBJECT

public:
    explicit MessageInfomation(QWidget *parent = nullptr);
    ~MessageInfomation();

    typedef enum emCloseType {
        kClose = 0,
        kOk,
        kCancel
    }emCloseType;

    void initData();
    void initConnection();
    void display(const emMessageBoxType type, const QPoint parentPoint, const QSize parentSize);

signals:
    void signalCloseType(const int msgType, int closeType);

private:
    Ui::MessageInfomation *ui;
    emMessageBoxType m_messageType = kProgramRunning;
};

#endif // MESSAGEINFOMATION_H
